package lookie.swing.laf;

import javax.swing.LookAndFeel;

public class LookAndFeelDelegateDescriptor implements LookAndFeelDescriptor {

	private String groupId;

	private LookAndFeel delegate;

	public LookAndFeelDelegateDescriptor(String groupId, LookAndFeel delegate) {
		this.groupId = groupId;
		this.delegate = delegate;
	}

	public String getClassName() {
		return delegate.getClass().getName();
	}

	public String getDescription() {
		return delegate.getDescription();
	}

	public String getId() {
		return groupId + "." + delegate.getID();
	}

	public String getGroupId() {
		return groupId;
	}

	public String getName() {
		return delegate.getName();
	}

	public boolean isNative() {
		return delegate.isNativeLookAndFeel();
	}

	public boolean isSupported() {
		return delegate.isSupportedLookAndFeel();
	}

}
